﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace www.coursera.algo.org._1.MergeSort
{
    class Program
    {
        static void Main(string[] args)
        {
            List<int> testList = new List<int> { 1, 5, 2, 7, 3, 9, 4, 6 };
            printList(testList);
            printList(MergeSorter.Sort(testList));
            Console.ReadLine();
        }

        private static void printList<T>(List<T> list)
        {
            foreach (var t in list)
            {
                Console.Write(t + " ");
            }
            Console.WriteLine();
            
        }
    }
}
